package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 汽车维护对象 car_maintain
 * 
 * @author ruoyi
 * @date 2024-09-09
 */
public class CarMaintain extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 维护记录ID */
    private Long id;

    /** 车辆ID */
    @Excel(name = "车辆ID")
    private Long carId;

    /** 车辆编号 */
    @Excel(name = "车辆编号")
    private String carNo;

    /** 维护方式 */
    @Excel(name = "维护方式")
    private String maintainMode;

    /** 司机ID */
    @Excel(name = "司机ID")
    private Long driverId;

    /** 司机名称 */
    @Excel(name = "司机名称")
    private String driverName;

    /** 维护时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "维护时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date maintainTime;

    /** 维护备注 */
    @Excel(name = "维护备注")
    private String memo;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCarId(Long carId) 
    {
        this.carId = carId;
    }

    public Long getCarId() 
    {
        return carId;
    }
    public void setCarNo(String carNo) 
    {
        this.carNo = carNo;
    }

    public String getCarNo() 
    {
        return carNo;
    }
    public void setMaintainMode(String maintainMode) 
    {
        this.maintainMode = maintainMode;
    }

    public String getMaintainMode() 
    {
        return maintainMode;
    }
    public void setDriverId(Long driverId) 
    {
        this.driverId = driverId;
    }

    public Long getDriverId() 
    {
        return driverId;
    }
    public void setDriverName(String driverName) 
    {
        this.driverName = driverName;
    }

    public String getDriverName() 
    {
        return driverName;
    }
    public void setMaintainTime(Date maintainTime) 
    {
        this.maintainTime = maintainTime;
    }

    public Date getMaintainTime() 
    {
        return maintainTime;
    }
    public void setMemo(String memo) 
    {
        this.memo = memo;
    }

    public String getMemo() 
    {
        return memo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("carId", getCarId())
            .append("carNo", getCarNo())
            .append("maintainMode", getMaintainMode())
            .append("driverId", getDriverId())
            .append("driverName", getDriverName())
            .append("maintainTime", getMaintainTime())
            .append("memo", getMemo())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
